package com.smiier.skin.net;

import android.content.Context;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.UserLoginTask.UserLoginRequest;
import com.smiier.skin.net.UserLoginTask.UserLoginResponse;
import com.smiier.skin.net.entity.User;
import com.smiier.skin.util.GlobalSettings;

/**
 * 登录
 * 
 * @author 杨文华
 * 
 */
public class UserLoginTask extends NetTask<UserLoginRequest, UserLoginResponse> {

	public static class UserLoginRequest extends ORequest {
		public String mobile;
		public String pwd;
		public String appname = Constant.APP_NAME;
	}

	public static class UserLoginResponse extends OResponse {
		public User Res;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=User.Login";
		mRequestMethod = METHOD_GET;
	}

}
